/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Algoritmo;

import Grafica.Vertice;
import InterfazPantera.PanteraView;

/**
 *
 * @author robertoanzaldua
 */
public class BFS extends AlgoritmoDistancia{

    public BFS(PanteraView interfaz){
            super(interfaz,"BFS");
    } 

    protected Vertice asignaU(){
        return C.getFirst();
    }

    protected int mueve(int i){
        return i==0 ? 0 : 0;
    }

   protected void asignaV(){
       v = u.elimina();
       agregaADesarrollo("v ← "+v.ID()+"\n\n");
   }

   protected int dist(){
       return 1;
   }

   protected void mA(){
       marcaArista(u.nV(), v.nV(),"\"" + b + " 0.7 0.7\"", true);
   }

}